package com.tensquare.qa.pojo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


/**
 * @Description
 * @Date 2021/3/19 13:26
 */
@Data
@TableName("tb_problem")  //问题表
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Problem {
    //ID
    @TableId
    private String id;

    //问题标题
    @TableField("title")
    private String title;

    //问题内容
    @TableField("content")
    private String content;

    //发布日期
    @TableField("createtime")
    private Date createtime;

    //更新日期
    @TableField("updatetime")
    private Date updatetime;

    //发布人ID
    @TableField("userid")
    private String userid;

    //发布人昵称
    @TableField("nickname")
    private String nickname;

    //浏览量
    @TableField("visits")
    private Integer visits;

    //点赞数
    @TableField("thumbup")
    private Integer thumbup;

    //回复数
    @TableField("reply")
    private Integer reply;

    //是否解决
    @TableField("solve")
    private String solve;

    //最新回复人
    @TableField("replyname")
    private String replyname;

    //最新回复时间
    @TableField("replytime")
    private Date replytime;
}
